package com.ruyuan.user.server.domain.model;

import com.ruyuan.common.model.Features;
import com.ruyuan.user.api.model.enums.GenderEnum;
import com.ruyuan.user.api.model.enums.RecruitTypeEnum;
import com.ruyuan.user.api.model.enums.UserJobRelationTypeEnum;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author xx
 */
@Data
public class User {
    private Long id;
    private String creator;
    private String modifier;
    private Date gmtCreat;
    private Date gmtModified;
    private String userName;
    private String password;
    private String name;
    private String photo;
    private Date birthday;
    private GenderEnum gender;
    private String nation;
    private String phone;
    private String address;
    private String email;
    private String identityCardNum;
    private Long rootOrgId;

    //用户主岗位
    private Job mainJob;

    private Map<UserJobRelationTypeEnum, List<Job>> otherJobs = new HashMap<>();

    private Date entryDate;
    private Date becomeTrailDate;
    private Date becomeRegularDate;
    private String code;
    private Integer salary;
    private RecruitTypeEnum recruitType;
    private String level;
    private Features features = Features.of();
    private String isDeleted;
}
